package com.hopu.service.MyHouse;

import com.github.pagehelper.PageInfo;
import com.hopu.dto.MyHouseDto;
import com.hopu.entity.MyHouse;
import com.hopu.util.HouseResult;

import javax.servlet.http.HttpServletRequest;

/**
 * @Package: com.hopu.service
 * @ClassName: MyHouseService
 * @Author: xiaoBao
 * @CreateTime: 2020/11/4 5:00
 * @Description: 【房屋资料功能服务层接口】
 */
public interface MyHouseService {
    /**查询所有房屋资料信息并分页显示*/
    HouseResult<PageInfo<MyHouseDto>> findAllHouseInfo(Integer current);

    /**根据房屋Id查询一条房屋信息（查看房屋详细信息）*/
    HouseResult<MyHouseDto> findHouseInfoById(MyHouse myHouse);

    /**添加一条房屋资料信息*/
    HouseResult<Object> addHouse(HttpServletRequest request, MyHouse myHouse);

    /**根据Id修改一条房屋信息*/
    HouseResult<Object> uppHouseById(MyHouse myHouse);
}
